home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / os2 / combo / combosup.doc < prev    next >
Encoding:
Text File  |  1990-01-28  |  1.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                            Combo Box Support Routines
  9.                            Dave Briccetti, 74475,1072
  10.                                 January 28, 1990
  11.  
  12.  
  13.  
  14.      The routines in COMBOSUP.C are used to  help set up combo boxes.  They
  15.      make it easy to add strings to the combo box's listbox,  and to select
  16.      the initial listbox item.
  17.  
  18.      There are two routines provided:
  19.  
  20.           InitComboBox -                takes  an  array  of   pointers  to
  21.                                         strings,  and  adds each  string to
  22.                                         the listbox
  23.  
  24.           InitComboBoxFromRcStrings -   takes an array  of resource  string
  25.                                         identifiers,   loads  the   strings
  26.                                         corresponding  to  the identifiers,
  27.                                         and adds the strings to the listbox
  28.  
  29.      Both of these  routines also  take a parameter  which specifies  which
  30.      listbox entry, if any, is to be selected initially.
  31.  
  32.      These routines come compiled and linked into a DLL file, COMBOSUP.DLL.
  33.      Library  COMBOSUP.LIB  can  be  used  for  linking,  to   establish  a
  34.      connection to the routines in the DLL.
  35.  
  36.      COMBOSMP.C  is a sample  program which uses the  two combo box support
  37.      routines.  It creates a standard window containing two combo boxes. It
  38.      initializes  one combo  box  with  InitComboBox,  and the  other  with
  39.      InitComboBoxFromRcStrings.
  40.  
  41.      COMBOSMP comes compiled and  linked into COMBOSMP.EXE.  It  expects to
  42.      find COMBOSUP.DLL in the LIBPATH.
  43.  
  44.      These programs may be used without any restrictions.
  45.  
  46.      Dave Briccetti
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.